import 'package:json_annotation/json_annotation.dart';
part 'community.g.dart';

@JsonSerializable()
// 小区类
class Community {
  @JsonKey(name: 'community')
  final String id; // 小区id
  @JsonKey(name: 'communityName')
  final String name; // 小区名称
  Community(this.id,this.name);
  factory Community.fromJson(Map<String, dynamic> json)=>_$CommunityFromJson(json);
  Map<String, dynamic> toJson()=>_$CommunityToJson(this);
}

List<Community> list = [
  Community('11','小区1'),
  Community('22','小区2'),
  Community('33','小区3')
];